package edu.guet.proxy;

public class Proxy extends Subject {

    RealSubject realSubject;

    @Override
    void Request() {
        if (realSubject == null){
            realSubject = new RealSubject();
        }
        System.out.println("从代理方法中调用request");
        realSubject.Request();
    }
}
